package com.ebao.po.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ebao.constants.UserType;

/**
 * @desc 关注
 * 
 * 用户和医生之间可以相互关注
 * 
 * @author snow
 * @date 2012-6-28
 */
@Entity
@Table(name = "T_Follow")
public class TFollow implements Serializable {

	private static final long serialVersionUID = -5936683690766655495L;

	private Long id;
	private UserType ownType;			// 
	private String own;					// USER/DOCTOR Id
	private UserType followerType;		// 关注者类型
	private String follower;			// 关注者Id
	private String followerDate;		// 关注日期

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOwn() {
		return own;
	}

	public void setOwn(String own) {
		this.own = own;
	}

	public UserType getOwnType() {
		return ownType;
	}

	public void setOwnType(UserType ownType) {
		this.ownType = ownType;
	}

	public String getFollower() {
		return follower;
	}

	public void setFollower(String follower) {
		this.follower = follower;
	}

	public UserType getFollowerType() {
		return followerType;
	}

	public void setFollowerType(UserType followerType) {
		this.followerType = followerType;
	}

	@Column(length = 19)
	public String getFollowerDate() {
		return followerDate;
	}

	public void setFollowerDate(String followerDate) {
		this.followerDate = followerDate;
	}
	
}
